{extend name="base"/}
{block name="css"}
<style>
	.layui-body {
		position: absolute;
		left: 0px;
		right: 0;
		top: 20px;
		bottom: 0;
		z-index: 998;
		width: auto;
		overflow: hidden;
		overflow-y: auto;
		box-sizing: border-box;
	}
</style>
{/block}
{block name="content"}
<div class="layui-container">
	<div class="layui-row">
		<div class="layui-col-lg12">
			<fieldset class="layui-elem-field">
				<legend>用户管理 - 新增用户</legend>
				<div class="layui-field-box">
					<form class="layui-form" id="userform" enctype="multipart/form-data">
						<div class="layui-form-item">
							<label class="layui-form-label">昵称</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input dataIntegral" name="name" value=""  lay-verify="required" placeholder="请输入">

							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">手机</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input dataIntegral" name="mobile" value=""   placeholder="请输入">

							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">头像</label>
							<div class="layui-input-block">
								<div class="layui-input-inline">
									<button type="button" class="layui-btn layui-btn-normal" id="test1">上传头像图片</button>
									<p id="demoText"></p>
								</div>
								<div class="layui-input-inline">
									<img id="preview" width="80px" src="" >
								</div>
							</div>
						</div>


						<div class="layui-form-item">
						<label class="layui-form-label">是否禁用</label>
						<div class="layui-input-block">
							<!-- <input type="text" class="layui-input dataIntegral" name="level" value=""  placeholder="请输入"> -->
							<select name="disable" >
								<option value="1">启用</option>
								<option value="0">禁用</option>

							</select>

						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">性别</label>
						<div class="layui-input-block">
							<!-- <input type="text" class="layui-input dataIntegral" name="level" value=""  placeholder="请输入"> -->
							<select name="sex" >
								<option value="1">男</option>
								<option value="2">女</option>

							</select>

						</div>
					</div>
						<div class="layui-form-item">
							<label class="layui-form-label">推荐人</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input dataMoney" name="parent_id" value="" placeholder="请输入推荐人手机号/UID">
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit="" lay-filter="adduser">立即提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							</div>
						</div>
					</form>
				</div>
			</fieldset>
		</div>
	</div>
</div>
{/block}
	{block name="js"}
	<script type="text/javascript" src="/static/backend/js/userAdd.js"></script>{/block}